package com.wms.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author Yzxxn
 */
@Data
@TableName("tb_warehouse_operations")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class WarehouseOperations {

    /**
     * 主键ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    /**
     * 作业单号
     */
    @TableField("job_code")
    private String jobCode;

    /**
     * 作业类型(数据字典)
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("category")
    private Integer category;

    /**
     * 状态(1未确认，2 已确认，3已调整)
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("status")
    private Integer status;

    /**
     * 操作员工ID
     */
    @TableField("emp_id")
    private Integer empId;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 删除标识
     */
    @TableField("is_del")
    private Integer isDel;
}
